package JavaCore;

public class ArrayTest2 {
	
	
	
	//int[] score = new int[3];
	int score[] = {0,0,0};
		
	public String toString(){
		
		for (int i=0;i<score.length;i++){
			System.out.println("score["+i+"] = " + score[i]);
				
		}
				
		return null;
	}
	
	/*
	public void ex1(){
		System.out.println("score[0] = " + score[0]);
		System.out.println("score[1] = " + score[1]);
		System.out.println("score[2] = " + score[2]);
		
		
	}
	*/
	
	
	public ArrayTest2(int a, int b, int c){
		
		score[0] = a;
		score[1] = b;
		score[2] = c;
		
	}

	public static void main(String[] args) {
		ArrayTest2 at = new ArrayTest2(10,20,30);
		
		at.toString();

		

	}

}
